package cn.ticket.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Newsblackboard {
    private Integer id;

    private Integer staffid;

    private String topic;

    private String content;

    private Date expiredate;

    private Byte value;

    private Date date;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffid() {
        return staffid;
    }

    public void setStaffid(Integer staffid) {
        this.staffid = staffid;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic == null ? null : topic.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getExpiredate() {
        return expiredate;
    }
    

    public void setExpiredate(long expiredate) throws ParseException {
    	Date date=new Date(expiredate+1000*60*60*20);
        this.expiredate = date;
    }
    public Byte getValue() {
        return value;
    }

    public void setValue(Byte value) {
        this.value = value;
    }
    public void setValue(int value) {
        this.value = (byte) value;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}